{include file="common/header"}
<div class="container-fluid buwei">
	{include file="common/history"}
	<div class="container video" style="width: 1200px;">
		<div class="buwei-search">
			<form>
				<div class="input-group">
					<input type="text" name="" class="search-text" placeholder="部位症状搜索">
					<input type="submite" name="" class="button search-btn">
				</div>
			</form>
		</div>

		{foreach name="classify" item="vo"}
			{if condition="($key)%5 == 0"}
				<p class="video-type">
			{/if}
				<!-- <a href="/index/video/index/cid/{$vo.id}.html" class="{eq name='$vo.id' value='$cid'}typeon{/eq}">{$vo.name}</a> -->
			{if condition="($key+1)%5 == 0"}
				</p>
			{/if}
		{/foreach}

		<p style="font-size: 18px;color: #444444;text-align:center;margin-bottom: 35px;font-weight: normal;padding-left: 140px;padding-right: 90px;">{$video_description}</p>
		{foreach name="list" item="vo"}
		<a href="/index/video/detail/ids/{$vo.id}.html" class="video-list-a">
			<div class="video-list">
				<div class="video-list-top">
					<img class="thumb top_1" src="__CDN__{$vo.image}">
					<span class="left-top">{$vo.createtime|date="Y-m-d",###}</span>
					<span class="left-down">浏览{$vo.hits}次</span>
					<span class="right-down">{$vo.time}</span>
					<div class="mengceng mc_1"><img src="__CDN__/assets/img/index/play.png"></div>
				</div>
				<div class="video-list-down">
					<p class="video-title">{$vo.title}</p>
					<p class="video-desc">{$vo.list_desc}</p>
				</div>
			</div>
		</a>
		{/foreach}
	</div>
	{$pages}
<script type="text/javascript">
	$(document).ready(function(){
		//限制字符个数
		$(".video-desc").each(function(){
			var maxwidth=30;
			if($(this).text().length>maxwidth){
				$(this).text($(this).text().substring(0,maxwidth));
				$(this).html($(this).html()+'…');
			}
		});

		$(".search-btn").click(function () {
			var text = $(".search-text").val();
			var url = "/index/video/search/text/"+text+".html";
			window.location.href = url;
        })
	});
</script>
{include file="common/login"}
{include file="common/footer"}